home *** CD-ROM | disk | FTP | other *** search
/ Mission 3 / Mission 3.zip / Mission 3.iso / demovers / toswin2 / xconout / readme next >
Text File  |  1994-12-20  |  2KB  |  41 lines

  1. XCONOUT2.XDD
  2. ============
  3.  
  4.  This piece of code implements a device /dev/xconout2 to MiNT. Once
  5. installed it doesn't do anything at all, which is why it should be
  6. quite save to install it even if you don't actually always use it.
  7.  
  8.  If you open /dev/xconout2 (which can only be done by one program)
  9. a new routine will be installed as a xconout2 handler. After this
  10. all data being written to the console, may it be any program writing
  11. directly to /dev/console or any daemon which was started with stdout
  12. pointing to /dev/console or even MiNT's internal debugging routines
  13. is not printed but buffered instead.
  14.  
  15.  So if you write a program which opens and selects this device for
  16. reading you'll be able to catch everything which might possibly destroy
  17. the screen contents under any kind of graphic application. If you should
  18. want to print the data to the console anyway, you can do this by writing
  19. it back to /dev/xconout2. Note that both read and write calls will
  20. never block.
  21.  
  22.  The only reason why this appears as a device driver is that a user
  23. level program doesn't need any MiNT specific functions (contrary to the
  24. stuff implemented in W0R8) and it's quite save: In case of a program
  25. crash the file will be closed by MiNT, which will install the original
  26. routine again. So even in cases of severe program crashes there's no
  27. chance of the vector pointing to abandoned memory and thus perhaps
  28. crashing the whole system any more (as it sometimes did in W0R8).
  29.  
  30.  BUGS: None (?).
  31.  
  32.  KNOWN FEATURES: Doesn't use XBRA and things like these. I very much doubt
  33. that under a multitasking environment it's very clever to change vectors
  34. from elsewhere that inside the OS itself. So I hope there isn't any
  35. program which will cause greater problems.
  36.  
  37.  Anyway: USE IT AT YOUR OWN RISK! THERE'S NO WARRANTY!
  38.  
  39. ciao,
  40. TeSche <itschere@techfak.uni-bielefeld.de>
  41.